package com.lzx.adx.report.enums;

/**
 * 58和媒体趣头条回调类型映射
 */
public enum AqyYdEnum {
    activate("android_activate", "0"),
    day1retention("android_day1retention", "3"),
    ;

    private String productCode;

    private String aqyCode;



    AqyYdEnum(String productCode, String aqyCode) {
        this.productCode = productCode;
        this.aqyCode = aqyCode;
    }

    public String getProductCode() {
        return productCode;
    }

    public String getAqyCode() {
        return aqyCode;
    }



    public static String getAqyCode(String productCode) {
        AqyYdEnum[] qttWBEnums = AqyYdEnum.values();
        for (AqyYdEnum qttWBEnum : qttWBEnums) {
            if (qttWBEnum.getProductCode().equals(productCode)) {
                return qttWBEnum.getAqyCode();
            }
        }
        return null;
    }

}
